<template>
    <view>
        <web-view :src="url"></web-view>
    </view>
</template>

<script>
    export default {
        name: "webView",
		data() {
			return {
				url: null
			}
		},
		onLoad(options) {
			this.url = options.url + 'app=' + (uni.getStorageSync('app') || '5gqy') + '&token=' + uni.getStorageSync('token');
			console.log(this.url)
		},
		onBackPress() {
			setTimeout(() => {
				uni.switchTab({
					url: '/pages/million/index?source=webview'
				});
			}, 2000)
		}
    }
</script>

<style lang="scss" scoped>

</style>